package com.github.wxiaoqi.security.biz.modules.pay.rest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.github.wxiaoqi.security.biz.common.biz.request.VerifyRecordQueryRequest;
import com.github.wxiaoqi.security.biz.modules.pay.biz.CmsVerifyRecordBiz;
import com.github.wxiaoqi.security.biz.modules.pay.entity.CmsVerifyRecord;
import com.github.wxiaoqi.security.common.msg.TableResultResponse;
import com.github.wxiaoqi.security.common.rest.BaseController;

@Controller
@RequestMapping("cmsVerifyRecord")
public class CmsVerifyRecordRestController extends BaseController<CmsVerifyRecordBiz,CmsVerifyRecord> {
	
	private static final Logger log = LoggerFactory.getLogger(CmsVerifyRecordRestController.class);
	
	/**
	 * 核销记录
	 * @param param
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value="/list", method=RequestMethod.POST)
	public TableResultResponse<CmsVerifyRecord> verifyOrders(@RequestBody VerifyRecordQueryRequest param) {
		log.info("查询核销记录，请求参数。。。{}"+param);
		return baseBiz.verifyRecords(param);
	}

}